<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../../../common/head.jsp">
			<jsp:param name="_useTab" value="true"/>
			<jsp:param name="_spPage" value="true"/>
		</jsp:include>

		<title>组织结构管理</title>
	<script language="JavaScript">   
		$(document).ready(function()
		{
			xjTabs.initTab();
		});
		function queryOrg()
		{
			var url = "listOrganization.do?orgPid=${orgPid}&orgId="+$("#orgId").val();
			url+="&orgName="+$("#orgName").val();
			url+="&state="+$("#state").find("option:selected").val();
			xjTabs.tabManualClick("1",url);
		}
		function updateOrgOrder()
		{
			if(confirm("确认重新生成组织机构排序数据"))
				window.location.href = "updateOrderOrganization.do?orgPid="+$("#orgPid").val();
		}
	</script>
	</head>
	<body>
	<div id="body_div">
	<w:ShowTitle name="组织结构管理">
		<w:TitleButton funcName="刷新组织排序" onClickFunction="updateOrgOrder()" urlImg="${ctx}/images/main/refresh.png"/>
		<w:TitleButton funcName="查询" onClickFunction="_queryDivBg(this)" urlImg="${ctx}/images/main/query.png"/>
	</w:ShowTitle>
	<form action="listOrganization.do" name="form1" id="form1" method="post">
	<div id="body_content">
	<div class="Sliding_tab">
		<ul>
			<li></li><li><span class="tabsLink" id="setTab0" link="#">组织结构信息</span></li><li></li>
			<li></li><li><span class="tabsLink" id="setTab1" link="listOrganization.do?state=A&orgPid=${orgPid}">下级部门</span></li><li></li>
		</ul>
	</div>
				<div id="queryDiv">
				<table width="100%" border="0">
					<tr>
						<td colspan="4" class="td_title">
							组织结构查询
						</td>
					</tr>
					<tr>
						<td>
							组织结构ID
						</td>
						<td class="left_align">
							<input name="orgPid" id="orgPid" type="hidden" value="${orgPid}"/>
							<input name="orgId" id="orgId" type="text" value="${orgId}"/>
						</td>
						<td>
							组织结构名称
						</td>
						<td class="left_align">
							<input name="orgName" id="orgName" type="text" value="${orgName}"/>
						</td>
					</tr>
					<tr>
						<td>
							在用状态
						</td>
						<td class="left_align">
							<w:select name="state" value="${state}" styleId="state">
								<w:option optionLabel="在用" optionValue="A"></w:option>
								<w:option optionLabel="停用" optionValue="P"></w:option>
							</w:select>
						</td>
						<td>
						</td>
						<td class="left_align">
						</td>
					</tr>
					<tr>
						<td colspan="4">
							<input name="button" type="button" class="btn_standard" value="　查 询　" onclick="queryOrg()"/>
							<input name="button" type="button" class="btn_standard" onclick="_cancelQuery()" value="取消" />
						</td>
					</tr>
				</table>
				</div>
				<table width="100%" id="content0" class="tabContent">
						<tr>
							<td class="right_align" width="150">
								上级ID
							</td>
							<td class="left_align" width="220">
								${orgOrganization.orgPid}
							</td>
							<td class="right_align" width="150">
								上级名称
							</td>
							<td class="left_align">
								${pOrgOrganization.orgName }
							</td>
						</tr>
						<tr>
							<td class="right_align">
								组织结构ID
							</td>
							<td class="left_align">
								${orgOrganization.orgId}
							</td>
							<td class="right_align">
								组织结构名称
							</td>
							<td class="left_align">
								${orgOrganization.orgName }
							</td>
						</tr>
						<tr>
							<td class="right_align">
								所属系统
							</td>
							<td class="left_align">
								<w:CodeDictOut value="${orgOrganization.belongsSystem}"></w:CodeDictOut>
							</td>
							<td class="right_align">
								组织结构类型
							</td>
							<td class="left_align">
								<w:CodeDictOut value="${orgOrganization.orgType}"></w:CodeDictOut>
							</td>
						</tr>
						<tr>
							<td class="right_align">
								组织机构层级
							</td>
							<td class="left_align">
								<w:CodeDictOut value="${orgOrganization.orgLevel}"></w:CodeDictOut>
							</td>
							<td class="right_align">
								组织机构编码
							</td>
							<td class="left_align">
								${orgOrganization.orgCode}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								快速选择码
							</td>
							<td class="left_align">
								${orgOrganization.suggestCode}
							</td>
							<td class="right_align">
								排序
							</td>
							<td class="left_align">
								${orgOrganization.orgOrder}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								法人代表
							</td>
							<td class="left_align">
								${orgOrganizationExtend.legalPerson}
							</td>
							<td class="right_align">
								公司联系电话
							</td>
							<td class="left_align">
								${orgOrganizationExtend.telNo}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								传真
							</td>
							<td class="left_align">
								${orgOrganizationExtend.faxNo}
							</td>
							<td class="right_align">
								主页
							</td>
							<td class="left_align">
								${orgOrganizationExtend.homePage}
							</td>
						</tr>
						<tr>
							<td class="right_align">
								E-mail
							</td>
							<td class="left_align">
								${orgOrganizationExtend.email}
							</td>
							<td class="right_align">
								成立时间
							</td>
							<td class="left_align">
								<fmt:formatDate value="${orgOrganizationExtend.createDate}" pattern="yyyy-MM-dd"/>
							</td>
						</tr>
						<tr>
							<td class="right_align">
								简介
							</td>
							<td colspan="3" class="left_align">
								${orgOrganizationExtend.notes}
							</td>
						</tr>
					</table>
			</div>
			
			</form>
		</div>	
	</body>
</html>